package com.nanjia.boot.myflow.order.item.model.vo;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import java.math.BigDecimal;

/**
 * 订单商品明细视图对象
 *
 * @author 周洋
 * @since 2025-07-18 14:59
 */
@Getter
@Setter
@Schema( description = "订单商品明细视图对象")
public class OrderItemVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;
    @Schema(description = "订单ID")
    private Long orderId;
    @Schema(description = "SKU ID")
    private Long skuId;
    @Schema(description = "商品名称（下单时）")
    private String productName;
    @Schema(description = "商品规格（下单时）")
    private String skuSpecs;
    @Schema(description = "购买单价")
    private BigDecimal price;
    @Schema(description = "购买数量")
    private Integer quantity;
    private LocalDateTime createTime;
    @Schema(description = "谁创建的")
    private String createBy;
    @Schema(description = "更新记录")
    private String updateBy;
    private String createIp;
    private String updateIp;
    private LocalDateTime updateTime;
    private String mainImage;

    private String specValues;
    /**
     * 数量倍率
     */
    private Long skuRatio;

    private Integer maxQuantity;

    private Long spuId;

    private Integer completedQuantity;
    private Integer requantity;

    private String ems;

    private String emsnumber;

    private String emsstatus;

    /**
     * 生产日期
     */
    private LocalDate productionDate;
    /**
     * 有效期至
     */
    private LocalDate expiryDate;

    private String batchNumber;

    private Long oodid;

    private Integer returnQuantity;

}
